import request from '@/utils/request'

// 查询诊断管理列表
export function listDiagnosis(query) {
  return request({
    url: '/doctor/diagnosis/list',
    method: 'get',
    params: query
  })
}

// 查询诊断管理详细
export function getDiagnosis(diagnoseId) {
  return request({
    url: '/doctor/diagnosis/' + diagnoseId,
    method: 'get'
  })
}

// 新增诊断管理
export function addDiagnosis(data) {
  return request({
    url: '/doctor/diagnosis',
    method: 'post',
    data: data
  })
}

// 修改诊断管理
export function updateDiagnosis(data) {
  return request({
    url: '/doctor/diagnosis',
    method: 'put',
    data: data
  })
}

// 删除诊断管理
export function delDiagnosis(diagnoseId) {
  return request({
    url: '/doctor/diagnosis/' + diagnoseId,
    method: 'delete'
  })
}
